import request from '@/utils/request'

export function becomeWriter(name, penName, token) {
  return request({
    url: '/api/writers/become-writer',
    method: 'post',
    params: {
      realName: name,
      penName: penName
    },
    headers: {
      Authorization: `Bearer ${token}`
    }
  })
}
